<h1  style="background:#e4393c; height:27px; line-height:27px; padding-left:10px;"><a href="catalog.php"><font style="color:#FFF; font-size:14px;"><?php echo $this->_var['lang']['all_category']; ?></font></a></h1>
<div class="modred mod2 blank" id="historybox">
<span class="lb"></span><span class="rb"></span>
<div class="cagegoryCon clearfix">
<?php $_from = get_categories_tree(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cat');$this->_foreach['name'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['name']['total'] > 0):
    foreach ($_from AS $this->_var['cat']):
        $this->_foreach['name']['iteration']++;
?> 

<?php if (($this->_foreach['name']['iteration'] == $this->_foreach['name']['total'])): ?>
<dl style="border:none;">
<?php else: ?>
<dl>
  <?php endif; ?>
  <dt><a href="<?php echo $this->_var['cat']['url']; ?>"><?php echo htmlspecialchars($this->_var['cat']['name']); ?></dt>
  <dd> <?php $_from = $this->_var['cat']['cat_id']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'child');if (count($_from)):
    foreach ($_from AS $this->_var['child']):
?>
    
    <p onMouseOver="this.className='itemsbg'" onMouseOut="this.className=''"><a href="<?php echo $this->_var['child']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['child']['name']); ?>" class="txtdot"><?php echo htmlspecialchars($this->_var['child']['name']); ?></a></p>
    
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    
    <div style=" height:0px; line-height:0px; clear:both"></div>
  </dd>
</dl>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
<div class="blank"></div>
</div>
